<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: InPerFot.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_in_per_fot_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">InPerFot.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface do Modulo Percistencia de Fotos.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_in_vet_bit_8h_source.html">InVetBit.h</a>&quot;</code><br/>
</div>
<p><a href="_in_per_fot_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_foto___m.html">Foto_M</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Representaçao da foto no contexto de persistencia de fotos variaveis.  <a href="struct_foto___m.html#details">More...</a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:abd1f369e9b7bca6bc6439e1f0e192dce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd1f369e9b7bca6bc6439e1f0e192dce"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ExtPF</b>&#160;&#160;&#160;extern</td></tr>
<tr class="memitem:a7a68491f103454eb83b4b99428998dbe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a68491f103454eb83b4b99428998dbe"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#a7a68491f103454eb83b4b99428998dbe">ARQUIVO_PF</a>&#160;&#160;&#160;&quot;Foto.txt&quot;</td></tr>
<tr class="memdesc:a7a68491f103454eb83b4b99428998dbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">O nome do arquivo do Banco de dados usuario. <br/></td></tr>
<tr class="memitem:a7908cbc5e99eb005539045eaa16bc337"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7908cbc5e99eb005539045eaa16bc337"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#a7908cbc5e99eb005539045eaa16bc337">NARQUIVO_PF</a>&#160;&#160;&#160;&quot;Foto&quot;</td></tr>
<tr class="memdesc:a7908cbc5e99eb005539045eaa16bc337"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
<tr class="memitem:aaa30831d4e9a28f23c378d58a5df7094"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa30831d4e9a28f23c378d58a5df7094"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#aaa30831d4e9a28f23c378d58a5df7094">TAMANHOREG_PF</a>&#160;&#160;&#160;82</td></tr>
<tr class="memdesc:aaa30831d4e9a28f23c378d58a5df7094"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
<tr class="memitem:a6a5d5b823be0a0c652e4f57a8067a0a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6a5d5b823be0a0c652e4f57a8067a0a6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EXTENSAO_PF</b>&#160;&#160;&#160;&quot;.txt&quot;</td></tr>
<tr class="memitem:a2459a1ebc5af598f52af6f423a87dff1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2459a1ebc5af598f52af6f423a87dff1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#a2459a1ebc5af598f52af6f423a87dff1">VARIAVELCONTROLE_PF</a>&#160;&#160;&#160;'$'</td></tr>
<tr class="memdesc:a2459a1ebc5af598f52af6f423a87dff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a9094703ed64d82b6d4dc819a9f0fc031"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9094703ed64d82b6d4dc819a9f0fc031"></a>
typedef struct <a class="el" href="struct_foto___m.html">Foto_M</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Foto_PF</b></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7660ef897ebccb7564feab168d958611"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7660ef897ebccb7564feab168d958611"></a>
ExtPF int&#160;</td><td class="memItemRight" valign="bottom"><b>PegaFoto_PF</b> (const char *, const char *, const char *, <a class="el" href="struct_foto___m.html">Foto_PF</a> *)</td></tr>
<tr class="memitem:a03f3bb12f539090cc26a9ad8f2641604"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03f3bb12f539090cc26a9ad8f2641604"></a>
ExtPF int&#160;</td><td class="memItemRight" valign="bottom"><b>AtualizaFoto_PF</b> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *)</td></tr>
<tr class="memitem:af5a27c0bca29bc80ada53d1aa3fb50b9"><td class="memItemLeft" align="right" valign="top">ExtPF int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#af5a27c0bca29bc80ada53d1aa3fb50b9">DeletaFoto_PF</a> (const char *, const char *, const char *)</td></tr>
<tr class="memdesc:af5a27c0bca29bc80ada53d1aa3fb50b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por deletar uma foto do banco de dados.  <a href="#af5a27c0bca29bc80ada53d1aa3fb50b9"></a><br/></td></tr>
<tr class="memitem:a3ea6bfcd2315cd23d48aab69e4a4e3e7"><td class="memItemLeft" align="right" valign="top">ExtPF int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_fot_8h.html#a3ea6bfcd2315cd23d48aab69e4a4e3e7">AddFoto_PF</a> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *FotoPass)</td></tr>
<tr class="memdesc:a3ea6bfcd2315cd23d48aab69e4a4e3e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por adicionar uma foto ao banco de dados.  <a href="#a3ea6bfcd2315cd23d48aab69e4a4e3e7"></a><br/></td></tr>
<tr class="memitem:a585b0433c560c1bde3ca4bfc34ffb574"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a585b0433c560c1bde3ca4bfc34ffb574"></a>
ExtPF int&#160;</td><td class="memItemRight" valign="bottom"><b>ListaFotos_PF</b> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *FotoPass, int Pulo, const char *CpfPass, const char *CodigPass)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interface do Modulo Percistencia de Fotos. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a3ea6bfcd2315cd23d48aab69e4a4e3e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AddFoto_PF </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_foto___m.html">Foto_PF</a> *&#160;</td>
          <td class="paramname"><em>NovaFoto</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por adicionar uma foto ao banco de dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">FotoPass</td><td>: O nome do <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a> a quem a foto pertence. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um inteiro que diz se houve e qual o tipo de erro:<br/>
 0 - Foto adcionada corretamente<br/>
 -1 - Erro de banco de Dados<br/>
 -2 - A foto nao foi encontrada<br/>
 OT - Erro no vetor de bits<br/>
 </dd></dl>

</div>
</div>
<a class="anchor" id="af5a27c0bca29bc80ada53d1aa3fb50b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPF int DeletaFoto_PF </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CpfUserPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigAlbumPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigFotoPass</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por deletar uma foto do banco de dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">CpfUserPass</td><td>: O CPF do usuario a quem a foto pertence. </td></tr>
    <tr><td class="paramname">CodigAlbumPass</td><td>: O codigo do album no qual a foto a se encontra. </td></tr>
    <tr><td class="paramname">CodigFotoPass</td><td>: O codigo da foto a ser deletada. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um inteiro que diz se houve e qual o tipo de erro:<br/>
 0 - Se o foto foi deletada corretamente<br/>
 -1 - Erro de banco de Dados<br/>
 -2 - A foto nao foi encontrada<br/>
 OT - Erro no vetor de bits<br/>
 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_in_per_fot_8h.html">InPerFot.h</a></li>
    <li class="footer">Generated on Wed Jul 4 2012 11:44:30 for My Project by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
